/**
 * Author: Zane
 * Email: 873934580@qq.com
 * Date: 2023/5/10
 */
export * from '@/model/system'
export * from '@/model/permission'

// 加载网络css文件
export const loadCss = (url: string) => {
    const link = document.createElement('link')
    link.rel = 'stylesheet'
    link.href = url
    link.crossOrigin = 'anonymous'
    document.getElementsByTagName('head')[0].appendChild(link)
}

// 加载网络js文件
export const loadJs = (url: string) => {
    const script = document.createElement('script')
    script.src = url
    document.body.appendChild(script)
}
